package rush.edu.wechat.common.redis;

/**
 * DESC:基础配置类，其它项目集成该类并加上Propertie前缀
 * USER:hmily
 * DATE:2018/1/31
 * TIME:19:40
 */
public abstract class BaseRedis implements RedisConfig {

    private Integer database;

    private String host;

    private Integer port;

    private String password;

    private String maxActive;

    private String maxWait;

    private String maxIdle;

    private String minIdle;

    private String timeout;

    public Integer getDatabase() {
        return database;
    }

    public BaseRedis setDatabase(Integer database) {
        this.database = database;
        return this;
    }

    public String getHost() {
        return host;
    }

    public BaseRedis setHost(String host) {
        this.host = host;
        return this;
    }

    public Integer getPort() {
        return port;
    }

    public BaseRedis setPort(Integer port) {
        this.port = port;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public BaseRedis setPassword(String password) {
        this.password = password;
        return this;
    }

    public String getMaxActive() {
        return maxActive;
    }

    public BaseRedis setMaxActive(String maxActive) {
        this.maxActive = maxActive;
        return this;
    }

    public String getMaxWait() {
        return maxWait;
    }

    public BaseRedis setMaxWait(String maxWait) {
        this.maxWait = maxWait;
        return this;
    }

    public String getMaxIdle() {
        return maxIdle;
    }

    public BaseRedis setMaxIdle(String maxIdle) {
        this.maxIdle = maxIdle;
        return this;
    }

    public String getMinIdle() {
        return minIdle;
    }

    public BaseRedis setMinIdle(String minIdle) {
        this.minIdle = minIdle;
        return this;
    }

    public String getTimeout() {
        return timeout;
    }

    public BaseRedis setTimeout(String timeout) {
        this.timeout = timeout;
        return this;
    }
}
